
#pragma once

#include "hge.h"
#include "hgegui.h"
#include "hgefont.h"
#include "hgecolor.h"

class TitleMenuItem : public hgeGUIObject
{
public:
	
	// Constructor
	TitleMenuItem(int id, hgeFont *fnt, HEFFECT snd, float x, float y, float delay, char *title);

	// For updating the screen
	void	Render();
	void	Update(float dt);

	// Entering & Leaving
	void	Enter();
	void	Leave();
	bool	IsDone();
	void	Focus(bool bFocused);

	// Update by keyboard or mouse input
	void	MouseOver(bool bOver);
	bool	MouseLButton(bool bDown);
	bool	KeyClick(int key, int chr);

private:

	// Data variables
	hgeFont		*fnt;
	HEFFECT		snd;
	float		delay;
	char		*title;

	// Colors and timers
	hgeColor	scolor, dcolor, scolor2, dcolor2;
	hgeColor	color;
	float		soffset, doffset, offset;
	float		timer, timer2;
};